package com.cjkj.equipment.domain;

import com.cjkj.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 耗材信息对象 t_medical_consumables_info
 * 
 * @author cjkj
 * @date 2025-10-09
 */
public class TMedicalConsumablesInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 耗材编号 */
    private String serialNumber;

    /** 耗材类型（1-体温传感器，2-心电电极贴） */
    private String equipmentType;

    /** 是否分配（0-未分配，1-已分配） */
    private String distributeFlag;

    /** 分配的代理商ID */
    private String agentId;

    /** 是否使用（0-未使用，1-已使用） */
    private String isUse;

    /** 患者就诊号 */
    private Long visitNo;

    /** 使用开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date useStartTime;

    /** 使用终止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date useEndTime;

    /** 删除标志（0-正常，2-删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSerialNumber(String serialNumber) 
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber() 
    {
        return serialNumber;
    }
    public void setEquipmentType(String equipmentType) 
    {
        this.equipmentType = equipmentType;
    }

    public String getEquipmentType() 
    {
        return equipmentType;
    }
    public void setDistributeFlag(String distributeFlag) 
    {
        this.distributeFlag = distributeFlag;
    }

    public String getDistributeFlag() 
    {
        return distributeFlag;
    }

    public String getAgentId() {
        return agentId;
    }

    public void setAgentId(String agentId) {
        this.agentId = agentId;
    }

    public void setIsUse(String isUse)
    {
        this.isUse = isUse;
    }

    public String getIsUse() 
    {
        return isUse;
    }
    public void setVisitNo(Long visitNo) 
    {
        this.visitNo = visitNo;
    }

    public Long getVisitNo() 
    {
        return visitNo;
    }
    public void setUseStartTime(Date useStartTime) 
    {
        this.useStartTime = useStartTime;
    }

    public Date getUseStartTime() 
    {
        return useStartTime;
    }
    public void setUseEndTime(Date useEndTime) 
    {
        this.useEndTime = useEndTime;
    }

    public Date getUseEndTime() 
    {
        return useEndTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serialNumber", getSerialNumber())
            .append("equipmentType", getEquipmentType())
            .append("distributeFlag", getDistributeFlag())
            .append("agentId", getAgentId())
            .append("isUse", getIsUse())
            .append("visitNo", getVisitNo())
            .append("useStartTime", getUseStartTime())
            .append("useEndTime", getUseEndTime())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
